function RequestHomepageDocuments() {
    RequestLibraryData("documents?q=sort:recent&limit=2",
		       function(results, terms) {
			   ProcessHomepageDocuments(results, terms); });
}    

function ProcessHomepageDocuments(results, terms) {
    ProcessLibraryDocuments("homepage_list", results, "home");
    var target = document.getElementById('homepage_list');
    target.innerHTML = target.innerHTML +
	'<p><a href="' + CalculateSiteURL("/library") +
	'" class="jump" target="_top">More library materials</a></p>';
    if (gadgets.window) gadgets.window.adjustHeight();
}
